.class public Lcom/instagram/android/activity/MainTabActivity;
.super Lcom/instagram/android/activity/v;
.source "MainTabActivity.java"

# interfaces
.implements Lcom/instagram/android/activity/m;


# static fields
.field private static a:Z


# instance fields
.field private b:Ljava/util/LinkedList;
    .annotation system Ldalvik/annotation/Signature;
        value = {
            "Ljava/util/LinkedList",
            "<",
            "Lcom/instagram/android/activity/ae;",
            ">;"
        }
    .end annotation
.end field

.field private c:Z

.field private d:Lcom/instagram/android/activity/ae;

.field private e:I

.field private f:I

.field private g:Z

.field private h:Lcom/instagram/ui/widget/a/a;

.field private i:Landroid/view/View;

.field private j:Landroid/view/View;

.field private k:Lcom/instagram/android/activity/k;

.field private l:Z

.field private final m:Landroid/os/Handler;

.field private n:Landroid/os/Bundle;

.field private o:Landroid/content/BroadcastReceiver;

.field private p:Landroid/content/BroadcastReceiver;


# direct methods
.method public constructor <init>()V
    .locals 2

    .prologue
    const/4 v1, 0x0

    .line 54
    invoke-direct {p0}, Lcom/instagram/android/activity/v;-><init>()V

    .line 83
    new-instance v0, Ljava/util/LinkedList;

    invoke-direct {v0}, Ljava/util/LinkedList;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->b:Ljava/util/LinkedList;

    .line 84
    iput-boolean v1, p0, Lcom/instagram/android/activity/MainTabActivity;->c:Z

    .line 89
    iput v1, p0, Lcom/instagram/android/activity/MainTabActivity;->e:I

    .line 91
    iput v1, p0, Lcom/instagram/android/activity/MainTabActivity;->f:I

    .line 92
    iput-boolean v1, p0, Lcom/instagram/android/activity/MainTabActivity;->g:Z

    .line 101
    new-instance v0, Landroid/os/Handler;

    invoke-direct {v0}, Landroid/os/Handler;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->m:Landroid/os/Handler;

    .line 154
    new-instance v0, Lcom/instagram/android/activity/w;

    invoke-direct {v0, p0}, Lcom/instagram/android/activity/w;-><init>(Lcom/instagram/android/activity/MainTabActivity;)V

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->o:Landroid/content/BroadcastReceiver;

    .line 630
    new-instance v0, Lcom/instagram/android/activity/ab;

    invoke-direct {v0, p0}, Lcom/instagram/android/activity/ab;-><init>(Lcom/instagram/android/activity/MainTabActivity;)V

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->p:Landroid/content/BroadcastReceiver;

    return-void
.end method

.method private a(Landroid/content/res/Configuration;)I
    .locals 2
    .parameter

    .prologue
    .line 532
    iget v0, p1, Landroid/content/res/Configuration;->orientation:I

    const/4 v1, 0x2

    if-ne v0, v1, :cond_0

    const/16 v0, 0x8

    :goto_0
    return v0

    :cond_0
    iget v0, p0, Lcom/instagram/android/activity/MainTabActivity;->f:I

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/activity/MainTabActivity;I)I
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    iput p1, p0, Lcom/instagram/android/activity/MainTabActivity;->e:I

    return p1
.end method

.method private a(Lcom/instagram/android/activity/ae;)Landroid/view/View;
    .locals 4
    .parameter

    .prologue
    .line 477
    new-instance v0, Landroid/content/Intent;

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->d()Ljava/lang/Class;

    move-result-object v1

    invoke-direct {v0, p0, v1}, Landroid/content/Intent;-><init>(Landroid/content/Context;Ljava/lang/Class;)V

    .line 479
    const-string v1, "com.instagram.extra.EXTRA_STARTING_FRAGMENT"

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->a()I

    move-result v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;I)Landroid/content/Intent;

    .line 480
    const-string v1, "MainTabActivity.EXTRA_TAB_NAME"

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 482
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    .line 484
    const-string v2, "MainTabActivity.INITIAL_TAB"

    const/4 v3, -0x1

    invoke-virtual {v1, v2, v3}, Landroid/content/Intent;->getIntExtra(Ljava/lang/String;I)I

    move-result v2

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->a()I

    move-result v3

    if-ne v2, v3, :cond_0

    .line 486
    const-string v2, "MainTabActivity.INITIAL_TAB_ARGUMENTS"

    const-string v3, "MainTabActivity.INITIAL_TAB_ARGUMENTS"

    invoke-virtual {v1, v3}, Landroid/content/Intent;->getBundleExtra(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v1

    invoke-virtual {v0, v2, v1}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Landroid/os/Bundle;)Landroid/content/Intent;

    .line 490
    :cond_0
    invoke-direct {p0, p1}, Lcom/instagram/android/activity/MainTabActivity;->b(Lcom/instagram/android/activity/ae;)Landroid/view/View;

    move-result-object v1

    .line 492
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v2

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->toString()Ljava/lang/String;

    move-result-object v3

    invoke-virtual {v2, v3}, Landroid/widget/TabHost;->newTabSpec(Ljava/lang/String;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    invoke-virtual {v2, v1}, Landroid/widget/TabHost$TabSpec;->setIndicator(Landroid/view/View;)Landroid/widget/TabHost$TabSpec;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/widget/TabHost$TabSpec;->setContent(Landroid/content/Intent;)Landroid/widget/TabHost$TabSpec;

    move-result-object v0

    .line 496
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v2

    invoke-virtual {v2, v0}, Landroid/widget/TabHost;->addTab(Landroid/widget/TabHost$TabSpec;)V

    .line 498
    return-object v1
.end method

.method static synthetic a(Lcom/instagram/android/activity/MainTabActivity;)Ljava/util/LinkedList;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->b:Ljava/util/LinkedList;

    return-object v0
.end method

.method private a(IIII)V
    .locals 7
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 725
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->m:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 727
    sget v0, Lcom/facebook/aw;->tab_bar_button_news:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    .line 732
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Landroid/view/View;->getWidth()I

    move-result v1

    if-eqz v1, :cond_0

    invoke-virtual {v0}, Landroid/view/View;->getHeight()I

    move-result v0

    if-eqz v0, :cond_0

    .line 733
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->g()Lcom/instagram/ui/widget/a/a;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3, p4}, Lcom/instagram/ui/widget/a/a;->a(IIII)V

    .line 742
    :goto_0
    return-void

    .line 735
    :cond_0
    iget-object v6, p0, Lcom/instagram/android/activity/MainTabActivity;->m:Landroid/os/Handler;

    new-instance v0, Lcom/instagram/android/activity/ac;

    move-object v1, p0

    move v2, p1

    move v3, p2

    move v4, p3

    move v5, p4

    invoke-direct/range {v0 .. v5}, Lcom/instagram/android/activity/ac;-><init>(Lcom/instagram/android/activity/MainTabActivity;IIII)V

    const-wide/16 v1, 0x64

    invoke-virtual {v6, v0, v1, v2}, Landroid/os/Handler;->postDelayed(Ljava/lang/Runnable;J)Z

    goto :goto_0
.end method

.method private a(Landroid/view/View;Lcom/instagram/android/activity/ae;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    const/4 v2, 0x0

    .line 688
    invoke-direct {p0, p2}, Lcom/instagram/android/activity/MainTabActivity;->e(Lcom/instagram/android/activity/ae;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 690
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/j;

    invoke-virtual {v0}, Landroid/support/v4/app/j;->f()Landroid/support/v4/app/r;

    move-result-object v0

    .line 693
    invoke-virtual {v0}, Landroid/support/v4/app/r;->f()I

    move-result v1

    if-lez v1, :cond_1

    .line 695
    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 710
    :cond_0
    :goto_0
    return-void

    .line 696
    :cond_1
    sget-object v1, Lcom/instagram/android/activity/ae;->b:Lcom/instagram/android/activity/ae;

    if-ne p2, v1, :cond_0

    .line 698
    sget v1, Lcom/facebook/aw;->layout_container_main:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/r;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/fragment/en;

    .line 700
    invoke-virtual {v0}, Lcom/instagram/android/fragment/en;->Z()I

    move-result v0

    sget-object v1, Lcom/instagram/android/fragment/en;->a:Ljava/lang/Integer;

    invoke-virtual {v1}, Ljava/lang/Integer;->intValue()I

    move-result v1

    if-ne v0, v1, :cond_0

    .line 701
    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    goto :goto_0

    .line 707
    :cond_2
    invoke-virtual {p1, v2}, Landroid/view/View;->setVisibility(I)V

    .line 708
    invoke-direct {p0, p2}, Lcom/instagram/android/activity/MainTabActivity;->c(Lcom/instagram/android/activity/ae;)V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/activity/MainTabActivity;IIII)V
    .locals 0
    .parameter
    .parameter
    .parameter
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1, p2, p3, p4}, Lcom/instagram/android/activity/MainTabActivity;->a(IIII)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/activity/MainTabActivity;Landroid/view/View;Lcom/instagram/android/activity/ae;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/activity/MainTabActivity;->a(Landroid/view/View;Lcom/instagram/android/activity/ae;)V

    return-void
.end method

.method static synthetic a(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/ae;Lcom/instagram/android/activity/ae;)V
    .locals 0
    .parameter
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1, p2}, Lcom/instagram/android/activity/MainTabActivity;->a(Lcom/instagram/android/activity/ae;Lcom/instagram/android/activity/ae;)V

    return-void
.end method

.method private a(Lcom/instagram/android/activity/ae;Lcom/instagram/android/activity/ae;)V
    .locals 3
    .parameter
    .parameter

    .prologue
    .line 611
    invoke-static {}, Lcom/instagram/b/a;->a()Lcom/instagram/b/c;

    move-result-object v0

    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getLocalActivityManager()Landroid/app/LocalActivityManager;

    move-result-object v1

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v1, v2}, Landroid/app/LocalActivityManager;->getActivity(Ljava/lang/String;)Landroid/app/Activity;

    move-result-object v1

    invoke-virtual {p2}, Lcom/instagram/android/activity/ae;->b()Ljava/lang/String;

    move-result-object v2

    invoke-interface {v0, v1, v2}, Lcom/instagram/b/c;->a(Landroid/app/Activity;Ljava/lang/String;)V

    .line 615
    return-void
.end method

.method public static a(Z)V
    .locals 0
    .parameter

    .prologue
    .line 680
    sput-boolean p0, Lcom/instagram/android/activity/MainTabActivity;->a:Z

    .line 681
    return-void
.end method

.method private a(ZLandroid/os/Bundle;)V
    .locals 4
    .parameter
    .parameter

    .prologue
    .line 449
    iget-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->g:Z

    if-eqz v0, :cond_1

    .line 474
    :cond_0
    :goto_0
    return-void

    .line 454
    :cond_1
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->e()V

    .line 455
    if-eqz p1, :cond_4

    .line 456
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/Intent;->getType()Ljava/lang/String;

    move-result-object v0

    .line 457
    if-eqz v0, :cond_2

    const-string v1, "image"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v1

    if-eqz v1, :cond_2

    .line 458
    const-string v0, "android.intent.extra.STREAM"

    invoke-virtual {p2, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/net/Uri;

    .line 459
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->d()Lcom/instagram/android/activity/k;

    move-result-object v1

    const/4 v2, 0x2

    const/16 v3, 0x2714

    invoke-virtual {v1, v0, v2, v3}, Lcom/instagram/android/activity/k;->a(Landroid/net/Uri;II)V

    goto :goto_0

    .line 463
    :cond_2
    if-eqz v0, :cond_0

    const-string v1, "video"

    invoke-virtual {v0, v1}, Ljava/lang/String;->startsWith(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    .line 464
    invoke-static {}, Lcom/instagram/creation/video/c/b;->d()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 465
    const-string v0, "android.intent.extra.STREAM"

    invoke-virtual {p2, v0}, Landroid/os/Bundle;->getParcelable(Ljava/lang/String;)Landroid/os/Parcelable;

    move-result-object v0

    check-cast v0, Landroid/net/Uri;

    .line 466
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->d()Lcom/instagram/android/activity/k;

    move-result-object v1

    invoke-virtual {v1, v0}, Lcom/instagram/android/activity/k;->a(Landroid/net/Uri;)V

    goto :goto_0

    .line 468
    :cond_3
    sget v0, Lcom/facebook/ba;->video_import_min_requirements:I

    const/4 v1, 0x0

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0

    .line 472
    :cond_4
    sget v0, Lcom/facebook/ba;->must_login_before_share:I

    const/4 v1, 0x1

    invoke-static {p0, v0, v1}, Landroid/widget/Toast;->makeText(Landroid/content/Context;II)Landroid/widget/Toast;

    move-result-object v0

    invoke-virtual {v0}, Landroid/widget/Toast;->show()V

    goto :goto_0
.end method

.method public static a()Z
    .locals 2

    .prologue
    .line 674
    sget-boolean v0, Lcom/instagram/android/activity/MainTabActivity;->a:Z

    .line 675
    const/4 v1, 0x0

    sput-boolean v1, Lcom/instagram/android/activity/MainTabActivity;->a:Z

    .line 676
    return v0
.end method

.method private a(Landroid/net/Uri;)Z
    .locals 8
    .parameter

    .prologue
    const/4 v4, -0x1

    const/4 v0, 0x0

    .line 220
    .line 223
    if-eqz p1, :cond_0

    iget-object v1, p0, Lcom/instagram/android/activity/MainTabActivity;->n:Landroid/os/Bundle;

    const-string v2, "SAVED_LAST_HANDLED_NOTIFICATION"

    invoke-virtual {v1, v2}, Landroid/os/Bundle;->get(Ljava/lang/String;)Ljava/lang/Object;

    move-result-object v1

    invoke-virtual {p1, v1}, Landroid/net/Uri;->equals(Ljava/lang/Object;)Z

    move-result v1

    if-eqz v1, :cond_1

    .line 253
    :cond_0
    :goto_0
    return v0

    .line 229
    :cond_1
    iget-object v1, p0, Lcom/instagram/android/activity/MainTabActivity;->n:Landroid/os/Bundle;

    const-string v2, "SAVED_LAST_HANDLED_NOTIFICATION"

    invoke-virtual {v1, v2, p1}, Landroid/os/Bundle;->putParcelable(Ljava/lang/String;Landroid/os/Parcelable;)V

    .line 231
    invoke-static {p1}, Lcom/instagram/android/activity/MainTabActivity;->b(Landroid/net/Uri;)Landroid/os/Bundle;

    move-result-object v2

    .line 234
    const-string v1, "MainTabActivity.INITIAL_TAB"

    invoke-virtual {v2, v1, v4}, Landroid/os/Bundle;->getInt(Ljava/lang/String;I)I

    move-result v3

    .line 236
    if-eq v3, v4, :cond_3

    .line 238
    invoke-static {}, Lcom/instagram/android/activity/ae;->values()[Lcom/instagram/android/activity/ae;

    move-result-object v4

    array-length v5, v4

    move v1, v0

    :goto_1
    if-ge v1, v5, :cond_3

    aget-object v6, v4, v1

    .line 239
    invoke-virtual {v6}, Lcom/instagram/android/activity/ae;->a()I

    move-result v7

    if-ne v7, v3, :cond_2

    .line 240
    invoke-direct {p0, v6}, Lcom/instagram/android/activity/MainTabActivity;->d(Lcom/instagram/android/activity/ae;)V

    .line 241
    const-string v0, "MainTabActivity.INITIAL_TAB_ARGUMENTS"

    invoke-virtual {v2, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v0

    invoke-static {v0}, Lcom/instagram/android/activity/ActivityInTab;->a(Landroid/os/Bundle;)V

    .line 243
    invoke-direct {p0, v6}, Lcom/instagram/android/activity/MainTabActivity;->c(Lcom/instagram/android/activity/ae;)V

    .line 244
    const/4 v0, 0x1

    .line 238
    :cond_2
    add-int/lit8 v1, v1, 0x1

    goto :goto_1

    .line 249
    :cond_3
    const/4 v1, 0x3

    if-ne v3, v1, :cond_0

    .line 250
    invoke-static {}, Lcom/instagram/android/fragment/en;->Y()V

    goto :goto_0
.end method

.method static synthetic a(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/ae;)Z
    .locals 1
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/activity/MainTabActivity;->e(Lcom/instagram/android/activity/ae;)Z

    move-result v0

    return v0
.end method

.method static synthetic a(Lcom/instagram/android/activity/MainTabActivity;Z)Z
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    iput-boolean p1, p0, Lcom/instagram/android/activity/MainTabActivity;->c:Z

    return p1
.end method

.method private static b(Landroid/net/Uri;)Landroid/os/Bundle;
    .locals 7
    .parameter

    .prologue
    const/4 v0, 0x3

    const/4 v2, -0x1

    const/4 v1, 0x0

    .line 821
    new-instance v3, Landroid/os/Bundle;

    invoke-direct {v3}, Landroid/os/Bundle;-><init>()V

    .line 822
    new-instance v4, Landroid/os/Bundle;

    invoke-direct {v4}, Landroid/os/Bundle;-><init>()V

    .line 824
    invoke-virtual {p0}, Landroid/net/Uri;->getHost()Ljava/lang/String;

    move-result-object v5

    .line 825
    const-string v6, "media"

    invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_1

    .line 826
    const-string v1, "screen"

    invoke-virtual {v4, v1, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 827
    const-string v1, "id"

    const-string v5, "id"

    invoke-virtual {p0, v5}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v1, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 853
    :goto_0
    if-eq v0, v2, :cond_0

    .line 854
    const-string v1, "MainTabActivity.INITIAL_TAB"

    invoke-virtual {v3, v1, v0}, Landroid/os/Bundle;->putInt(Ljava/lang/String;I)V

    .line 855
    const-string v0, "MainTabActivity.INITIAL_TAB_ARGUMENTS"

    invoke-virtual {v3, v0, v4}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V

    .line 858
    :cond_0
    return-object v3

    .line 830
    :cond_1
    const-string v6, "user"

    invoke-virtual {v6, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v6

    if-eqz v6, :cond_2

    .line 831
    const-string v1, "screen"

    invoke-virtual {v4, v1, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 832
    const-string v1, "id"

    const-string v5, "username"

    invoke-virtual {p0, v5}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v1, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    goto :goto_0

    .line 835
    :cond_2
    const-string v0, "direct"

    invoke-virtual {v0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_3

    .line 836
    const-string v0, "screen"

    invoke-virtual {v4, v0, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 837
    const-string v0, "id"

    const-string v5, "id"

    invoke-virtual {p0, v5}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v0, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    .line 839
    const-string v0, "ds_has_comment"

    sget-object v5, Ljava/lang/Boolean;->TRUE:Ljava/lang/Boolean;

    invoke-virtual {v5}, Ljava/lang/Boolean;->toString()Ljava/lang/String;

    move-result-object v5

    const-string v6, "has_comment"

    invoke-virtual {p0, v6}, Landroid/net/Uri;->getQueryParameter(Ljava/lang/String;)Ljava/lang/String;

    move-result-object v6

    invoke-virtual {v5, v6}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v5

    invoke-virtual {v4, v0, v5}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    move v0, v1

    .line 841
    goto :goto_0

    .line 842
    :cond_3
    const-string v0, "direct_request"

    invoke-virtual {v0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_4

    .line 843
    const-string v0, "screen"

    invoke-virtual {v4, v0, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    move v0, v1

    .line 844
    goto :goto_0

    .line 845
    :cond_4
    const-string v0, "inbox"

    invoke-virtual {v0, v5}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_5

    .line 846
    const-string v0, "screen"

    invoke-virtual {p0}, Landroid/net/Uri;->getHost()Ljava/lang/String;

    move-result-object v5

    invoke-virtual {v4, v0, v5}, Landroid/os/Bundle;->putString(Ljava/lang/String;Ljava/lang/String;)V

    move v0, v1

    .line 847
    goto :goto_0

    .line 849
    :cond_5
    const-string v0, "MainTabActivity"

    const-string v1, "Unrecognized action type, just opening app"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    move v0, v2

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/activity/MainTabActivity;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->i:Landroid/view/View;

    return-object v0
.end method

.method private b(Lcom/instagram/android/activity/ae;)Landroid/view/View;
    .locals 3
    .parameter

    .prologue
    .line 539
    invoke-static {p0}, Landroid/view/LayoutInflater;->from(Landroid/content/Context;)Landroid/view/LayoutInflater;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->c()I

    move-result v1

    const/4 v2, 0x0

    invoke-virtual {v0, v1, v2}, Landroid/view/LayoutInflater;->inflate(ILandroid/view/ViewGroup;)Landroid/view/View;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/widget/SimpleProxyView;

    .line 543
    new-instance v1, Lcom/instagram/android/activity/y;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/activity/y;-><init>(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/ae;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/SimpleProxyView;->a(Landroid/view/View$OnClickListener;)V

    .line 556
    sget-object v1, Lcom/instagram/android/activity/ae;->c:Lcom/instagram/android/activity/ae;

    if-ne p1, v1, :cond_0

    .line 557
    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/SimpleProxyView;->setProxyToOnClickListener(Z)V

    .line 558
    new-instance v1, Lcom/instagram/android/activity/z;

    invoke-direct {v1, p0}, Lcom/instagram/android/activity/z;-><init>(Lcom/instagram/android/activity/MainTabActivity;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/SimpleProxyView;->a(Landroid/view/View$OnClickListener;)V

    .line 579
    :goto_0
    return-object v0

    .line 565
    :cond_0
    new-instance v1, Lcom/instagram/android/activity/aa;

    invoke-direct {v1, p0, p1}, Lcom/instagram/android/activity/aa;-><init>(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/ae;)V

    invoke-virtual {v0, v1}, Lcom/instagram/android/widget/SimpleProxyView;->a(Landroid/view/View$OnClickListener;)V

    goto :goto_0
.end method

.method static synthetic b(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/ae;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/activity/MainTabActivity;->c(Lcom/instagram/android/activity/ae;)V

    return-void
.end method

.method static synthetic c(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/ae;)Lcom/instagram/android/activity/ae;
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    iput-object p1, p0, Lcom/instagram/android/activity/MainTabActivity;->d:Lcom/instagram/android/activity/ae;

    return-object p1
.end method

.method static synthetic c(Lcom/instagram/android/activity/MainTabActivity;)Lcom/instagram/ui/widget/a/a;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    return-object v0
.end method

.method private c(Lcom/instagram/android/activity/ae;)V
    .locals 3
    .parameter

    .prologue
    .line 583
    new-instance v0, Landroid/content/Intent;

    const-string v1, "MainTabActivity.BROADCAST_POP_TO_ROOT"

    invoke-direct {v0, v1}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    .line 584
    const-string v1, "MainTabActivity.EXTRA_TAB_NAME"

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->toString()Ljava/lang/String;

    move-result-object v2

    invoke-virtual {v0, v1, v2}, Landroid/content/Intent;->putExtra(Ljava/lang/String;Ljava/lang/String;)Landroid/content/Intent;

    .line 585
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getApplicationContext()Landroid/content/Context;

    move-result-object v1

    invoke-static {v1}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/support/v4/a/e;->b(Landroid/content/Intent;)V

    .line 586
    return-void
.end method

.method static synthetic d(Lcom/instagram/android/activity/MainTabActivity;)I
    .locals 1
    .parameter

    .prologue
    .line 54
    iget v0, p0, Lcom/instagram/android/activity/MainTabActivity;->e:I

    return v0
.end method

.method private d()Lcom/instagram/android/activity/k;
    .locals 1

    .prologue
    .line 440
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->k:Lcom/instagram/android/activity/k;

    if-nez v0, :cond_0

    .line 441
    new-instance v0, Lcom/instagram/android/activity/k;

    invoke-direct {v0, p0}, Lcom/instagram/android/activity/k;-><init>(Landroid/app/Activity;)V

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->k:Lcom/instagram/android/activity/k;

    .line 443
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->k:Lcom/instagram/android/activity/k;

    return-object v0
.end method

.method static synthetic d(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/ae;)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 54
    invoke-direct {p0, p1}, Lcom/instagram/android/activity/MainTabActivity;->d(Lcom/instagram/android/activity/ae;)V

    return-void
.end method

.method private d(Lcom/instagram/android/activity/ae;)V
    .locals 2
    .parameter

    .prologue
    .line 621
    iput-object p1, p0, Lcom/instagram/android/activity/MainTabActivity;->d:Lcom/instagram/android/activity/ae;

    .line 622
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setCurrentTabByTag(Ljava/lang/String;)V

    .line 623
    return-void
.end method

.method static synthetic e(Lcom/instagram/android/activity/MainTabActivity;)Landroid/view/View;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->j:Landroid/view/View;

    return-object v0
.end method

.method private e()V
    .locals 1

    .prologue
    .line 665
    const/4 v0, 0x1

    iput-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->g:Z

    .line 666
    return-void
.end method

.method private e(Lcom/instagram/android/activity/ae;)Z
    .locals 2
    .parameter

    .prologue
    .line 714
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/ActivityInTab;

    .line 715
    if-eqz v0, :cond_0

    invoke-virtual {v0}, Lcom/instagram/android/activity/ActivityInTab;->h()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {p1}, Lcom/instagram/android/activity/ae;->toString()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic f(Lcom/instagram/android/activity/MainTabActivity;)Lcom/instagram/android/activity/ae;
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->d:Lcom/instagram/android/activity/ae;

    return-object v0
.end method

.method private f()Z
    .locals 2

    .prologue
    .line 669
    const-string v0, "android.intent.action.SEND"

    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getIntent()Landroid/content/Intent;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v1

    invoke-virtual {v0, v1}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    const-string v1, "android.intent.extra.STREAM"

    invoke-virtual {v0, v1}, Landroid/content/Intent;->hasExtra(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_0

    const/4 v0, 0x1

    :goto_0
    return v0

    :cond_0
    const/4 v0, 0x0

    goto :goto_0
.end method

.method static synthetic g(Lcom/instagram/android/activity/MainTabActivity;)Lcom/instagram/android/activity/k;
    .locals 1
    .parameter

    .prologue
    .line 54
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->d()Lcom/instagram/android/activity/k;

    move-result-object v0

    return-object v0
.end method

.method private g()Lcom/instagram/ui/widget/a/a;
    .locals 3

    .prologue
    .line 745
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    if-nez v0, :cond_0

    .line 746
    new-instance v0, Lcom/instagram/ui/widget/a/a;

    sget v1, Lcom/facebook/aw;->tab_bar_button_news:I

    invoke-virtual {p0, v1}, Lcom/instagram/android/activity/MainTabActivity;->findViewById(I)Landroid/view/View;

    move-result-object v1

    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v2

    invoke-virtual {v2}, Landroid/widget/TabHost;->getWidth()I

    move-result v2

    invoke-direct {v0, v1, v2}, Lcom/instagram/ui/widget/a/a;-><init>(Landroid/view/View;I)V

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    .line 751
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v1

    invoke-virtual {v1}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v1

    invoke-direct {p0, v1}, Lcom/instagram/android/activity/MainTabActivity;->a(Landroid/content/res/Configuration;)I

    move-result v1

    invoke-virtual {v0, v1}, Lcom/instagram/ui/widget/a/a;->a(I)V

    .line 754
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    new-instance v1, Lcom/instagram/android/activity/ad;

    invoke-direct {v1, p0}, Lcom/instagram/android/activity/ad;-><init>(Lcom/instagram/android/activity/MainTabActivity;)V

    invoke-virtual {v0, v1}, Lcom/instagram/ui/widget/a/a;->a(Landroid/view/View$OnClickListener;)V

    .line 779
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    return-object v0
.end method

.method static synthetic h(Lcom/instagram/android/activity/MainTabActivity;)Z
    .locals 1
    .parameter

    .prologue
    .line 54
    iget-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->c:Z

    return v0
.end method


# virtual methods
.method public a(Ljava/io/File;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 789
    invoke-static {p0, p2, p1}, Lcom/instagram/android/util/i;->a(Landroid/app/Activity;ILjava/io/File;)V

    .line 790
    return-void
.end method

.method public a_(I)V
    .locals 1
    .parameter

    .prologue
    .line 815
    const/16 v0, 0x2714

    if-ne p1, v0, :cond_0

    .line 816
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->finish()V

    .line 818
    :cond_0
    return-void
.end method

.method public a_(Landroid/content/Intent;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 784
    invoke-virtual {p0, p1, p2}, Lcom/instagram/android/activity/MainTabActivity;->startActivityForResult(Landroid/content/Intent;I)V

    .line 785
    return-void
.end method

.method public b()I
    .locals 1

    .prologue
    .line 684
    iget v0, p0, Lcom/instagram/android/activity/MainTabActivity;->e:I

    return v0
.end method

.method public b(I)V
    .locals 2
    .parameter

    .prologue
    .line 516
    iput p1, p0, Lcom/instagram/android/activity/MainTabActivity;->f:I

    .line 520
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getResources()Landroid/content/res/Resources;

    move-result-object v0

    invoke-virtual {v0}, Landroid/content/res/Resources;->getConfiguration()Landroid/content/res/Configuration;

    move-result-object v0

    iget v0, v0, Landroid/content/res/Configuration;->orientation:I

    const/4 v1, 0x1

    if-ne v0, v1, :cond_0

    .line 521
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabWidget()Landroid/widget/TabWidget;

    move-result-object v0

    invoke-virtual {v0, p1}, Landroid/widget/TabWidget;->setVisibility(I)V

    .line 522
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    if-eqz v0, :cond_0

    .line 523
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    invoke-virtual {v0, p1}, Lcom/instagram/ui/widget/a/a;->a(I)V

    .line 526
    :cond_0
    return-void
.end method

.method public b(Ljava/io/File;I)V
    .locals 0
    .parameter
    .parameter

    .prologue
    .line 794
    invoke-static {p0, p2, p1}, Lcom/instagram/creation/base/e;->a(Landroid/app/Activity;ILjava/io/File;)V

    .line 795
    return-void
.end method

.method public c()V
    .locals 2

    .prologue
    .line 800
    invoke-static {}, Lcom/instagram/android/activity/MainTabActivity;->a()Z

    move-result v0

    if-eqz v0, :cond_0

    .line 801
    invoke-static {}, Lcom/instagram/android/fragment/dw;->am()V

    .line 802
    sget-object v0, Lcom/instagram/android/activity/ae;->a:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->d(Lcom/instagram/android/activity/ae;)V

    .line 803
    sget-object v0, Lcom/instagram/android/activity/ae;->a:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->c(Lcom/instagram/android/activity/ae;)V

    .line 810
    :goto_0
    return-void

    .line 805
    :cond_0
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/j;

    invoke-virtual {v0}, Landroid/support/v4/app/j;->f()Landroid/support/v4/app/r;

    move-result-object v0

    .line 807
    sget v1, Lcom/facebook/aw;->layout_container_main:I

    invoke-virtual {v0, v1}, Landroid/support/v4/app/r;->a(I)Landroid/support/v4/app/Fragment;

    move-result-object v0

    instance-of v0, v0, Lcom/instagram/android/directshare/d/d;

    if-nez v0, :cond_1

    const/4 v0, 0x1

    :goto_1
    iput-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->l:Z

    goto :goto_0

    :cond_1
    const/4 v0, 0x0

    goto :goto_1
.end method

.method protected onActivityResult(IILandroid/content/Intent;)V
    .locals 1
    .parameter "requestCode"
    .parameter "resultCode"
    .parameter "data"

    .prologue
    .line 661
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->d()Lcom/instagram/android/activity/k;

    move-result-object v0

    invoke-virtual {v0, p1, p2, p3}, Lcom/instagram/android/activity/k;->a(IILandroid/content/Intent;)V

    .line 662
    return-void
.end method

.method public onConfigurationChanged(Landroid/content/res/Configuration;)V
    .locals 2
    .parameter "newConfig"

    .prologue
    .line 503
    invoke-super {p0, p1}, Lcom/instagram/android/activity/v;->onConfigurationChanged(Landroid/content/res/Configuration;)V

    .line 505
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v0

    if-eqz v0, :cond_0

    .line 506
    invoke-direct {p0, p1}, Lcom/instagram/android/activity/MainTabActivity;->a(Landroid/content/res/Configuration;)I

    move-result v0

    .line 507
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabWidget()Landroid/widget/TabWidget;

    move-result-object v1

    invoke-virtual {v1, v0}, Landroid/widget/TabWidget;->setVisibility(I)V

    .line 508
    iget-object v1, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    if-eqz v1, :cond_0

    .line 509
    iget-object v1, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    invoke-virtual {v1, v0}, Lcom/instagram/ui/widget/a/a;->a(I)V

    .line 513
    :cond_0
    return-void
.end method

.method protected onCreate(Landroid/os/Bundle;)V
    .locals 6
    .parameter "savedInstanceState"

    .prologue
    const/4 v5, -0x2

    const/4 v1, 0x0

    .line 330
    invoke-super {p0, p1}, Lcom/instagram/android/activity/v;->onCreate(Landroid/os/Bundle;)V

    .line 332
    const-string v0, "MainTabActivity"

    const-string v2, "onCreate"

    invoke-static {v0, v2}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 334
    if-eqz p1, :cond_0

    .line 335
    const-string v0, "SAVED_STATE_BUNDLE"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getBundle(Ljava/lang/String;)Landroid/os/Bundle;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->n:Landroid/os/Bundle;

    .line 337
    :cond_0
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->n:Landroid/os/Bundle;

    if-nez v0, :cond_1

    .line 338
    new-instance v0, Landroid/os/Bundle;

    invoke-direct {v0}, Landroid/os/Bundle;-><init>()V

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->n:Landroid/os/Bundle;

    .line 345
    :cond_1
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->isTaskRoot()Z

    move-result v0

    if-nez v0, :cond_2

    .line 346
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getIntent()Landroid/content/Intent;

    move-result-object v0

    .line 347
    invoke-virtual {v0}, Landroid/content/Intent;->getAction()Ljava/lang/String;

    move-result-object v2

    .line 348
    const-string v3, "android.intent.category.LAUNCHER"

    invoke-virtual {v0, v3}, Landroid/content/Intent;->hasCategory(Ljava/lang/String;)Z

    move-result v0

    if-eqz v0, :cond_2

    if-eqz v2, :cond_2

    const-string v0, "android.intent.action.MAIN"

    invoke-virtual {v2, v0}, Ljava/lang/String;->equals(Ljava/lang/Object;)Z

    move-result v0

    if-eqz v0, :cond_2

    .line 351
    const-string v0, "MainTabActivity"

    const-string v1, "MainTabActivity is not the root. Finishing activity instead of launching."

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->d(Ljava/lang/String;Ljava/lang/String;)V

    .line 352
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->finish()V

    .line 428
    :goto_0
    return-void

    .line 357
    :cond_2
    invoke-static {}, Lcom/instagram/service/a;->a()Lcom/instagram/service/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/service/a;->d()Z

    move-result v2

    .line 362
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getIntent()Landroid/content/Intent;

    move-result-object v3

    .line 363
    invoke-virtual {v3}, Landroid/content/Intent;->getExtras()Landroid/os/Bundle;

    move-result-object v4

    .line 364
    if-eqz p1, :cond_4

    const-string v0, "MainTabActivity.tookSendIntent"

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    if-eqz v0, :cond_4

    const/4 v0, 0x1

    :goto_1
    iput-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->g:Z

    .line 366
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->f()Z

    move-result v0

    if-eqz v0, :cond_3

    .line 367
    invoke-direct {p0, v2, v4}, Lcom/instagram/android/activity/MainTabActivity;->a(ZLandroid/os/Bundle;)V

    .line 373
    :cond_3
    if-nez v2, :cond_5

    .line 374
    invoke-static {p0}, Lcom/instagram/android/nux/SignedOutFragmentActivity;->a(Landroid/app/Activity;)V

    goto :goto_0

    :cond_4
    move v0, v1

    .line 364
    goto :goto_1

    .line 378
    :cond_5
    sget v0, Lcom/facebook/ax;->layout_activity_main_tabs:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->setContentView(I)V

    .line 380
    invoke-static {}, Lcom/instagram/strings/StringBridge;->a()Z

    move-result v0

    if-eqz v0, :cond_6

    .line 381
    const-string v0, "failed_to_load_library_logged_in"

    const-string v2, "failed_to_load_library_logged_in"

    invoke-static {v0, v2}, Lcom/instagram/g/c;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 383
    new-instance v0, Lcom/instagram/ui/a/a;

    invoke-direct {v0, p0}, Lcom/instagram/ui/a/a;-><init>(Landroid/content/Context;)V

    sget v2, Lcom/facebook/ba;->error:I

    invoke-virtual {v0, v2}, Lcom/instagram/ui/a/a;->b(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(Z)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->unable_to_start:I

    invoke-virtual {v0, v1}, Lcom/instagram/ui/a/a;->a(I)Lcom/instagram/ui/a/a;

    move-result-object v0

    sget v1, Lcom/facebook/ba;->ok:I

    new-instance v2, Lcom/instagram/android/activity/x;

    invoke-direct {v2, p0}, Lcom/instagram/android/activity/x;-><init>(Lcom/instagram/android/activity/MainTabActivity;)V

    invoke-virtual {v0, v1, v2}, Lcom/instagram/ui/a/a;->a(ILandroid/content/DialogInterface$OnClickListener;)Lcom/instagram/ui/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/ui/a/a;->b()Landroid/app/Dialog;

    move-result-object v0

    invoke-virtual {v0}, Landroid/app/Dialog;->show()V

    goto :goto_0

    .line 398
    :cond_6
    sget-object v0, Lcom/instagram/android/activity/ae;->a:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->a(Lcom/instagram/android/activity/ae;)Landroid/view/View;

    .line 399
    sget-object v0, Lcom/instagram/android/activity/ae;->d:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->a(Lcom/instagram/android/activity/ae;)Landroid/view/View;

    .line 401
    sget-object v0, Lcom/instagram/android/activity/ae;->c:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->a(Lcom/instagram/android/activity/ae;)Landroid/view/View;

    move-result-object v0

    .line 402
    new-instance v1, Landroid/widget/LinearLayout$LayoutParams;

    invoke-direct {v1, v5, v5}, Landroid/widget/LinearLayout$LayoutParams;-><init>(II)V

    invoke-virtual {v0, v1}, Landroid/view/View;->setLayoutParams(Landroid/view/ViewGroup$LayoutParams;)V

    .line 408
    sget-object v0, Lcom/instagram/android/activity/ae;->b:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->a(Lcom/instagram/android/activity/ae;)Landroid/view/View;

    .line 409
    sget-object v0, Lcom/instagram/android/activity/ae;->e:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->a(Lcom/instagram/android/activity/ae;)Landroid/view/View;

    .line 412
    sget-object v0, Lcom/instagram/android/activity/ae;->b:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->d(Lcom/instagram/android/activity/ae;)V

    .line 414
    invoke-virtual {v3}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->a(Landroid/net/Uri;)Z

    move-result v0

    if-nez v0, :cond_7

    .line 416
    sget-object v0, Lcom/instagram/android/activity/ae;->a:Lcom/instagram/android/activity/ae;

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->d(Lcom/instagram/android/activity/ae;)V

    .line 420
    :cond_7
    invoke-static {}, Lcom/instagram/m/a/b;->a()Lcom/instagram/m/a/b;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/m/a/b;->d()Z

    move-result v0

    if-eqz v0, :cond_8

    .line 421
    invoke-static {p0}, Lcom/instagram/android/receiver/C2DMReceiver;->b(Landroid/content/Context;)V

    .line 424
    :cond_8
    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getTabHost()Landroid/widget/TabHost;

    move-result-object v0

    new-instance v1, Lcom/instagram/android/activity/af;

    const/4 v2, 0x0

    invoke-direct {v1, p0, v2}, Lcom/instagram/android/activity/af;-><init>(Lcom/instagram/android/activity/MainTabActivity;Lcom/instagram/android/activity/w;)V

    invoke-virtual {v0, v1}, Landroid/widget/TabHost;->setOnTabChangedListener(Landroid/widget/TabHost$OnTabChangeListener;)V

    .line 426
    sget v0, Lcom/facebook/aw;->tab_bar_news_notification:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->i:Landroid/view/View;

    .line 427
    sget v0, Lcom/facebook/aw;->tab_bar_profile_notification:I

    invoke-virtual {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->findViewById(I)Landroid/view/View;

    move-result-object v0

    iput-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->j:Landroid/view/View;

    goto/16 :goto_0
.end method

.method protected onDestroy()V
    .locals 1

    .prologue
    .line 432
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    if-eqz v0, :cond_0

    .line 434
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->h:Lcom/instagram/ui/widget/a/a;

    invoke-virtual {v0}, Lcom/instagram/ui/widget/a/a;->a()V

    .line 436
    :cond_0
    invoke-super {p0}, Lcom/instagram/android/activity/v;->onDestroy()V

    .line 437
    return-void
.end method

.method protected onNewIntent(Landroid/content/Intent;)V
    .locals 2
    .parameter "intent"

    .prologue
    .line 210
    const-string v0, "MainTabActivity"

    const-string v1, "On new intent"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 211
    invoke-virtual {p1}, Landroid/content/Intent;->getData()Landroid/net/Uri;

    move-result-object v0

    invoke-direct {p0, v0}, Lcom/instagram/android/activity/MainTabActivity;->a(Landroid/net/Uri;)Z

    .line 212
    invoke-super {p0, p1}, Lcom/instagram/android/activity/v;->onNewIntent(Landroid/content/Intent;)V

    .line 213
    return-void
.end method

.method protected onPause()V
    .locals 2

    .prologue
    .line 290
    invoke-super {p0}, Lcom/instagram/android/activity/v;->onPause()V

    .line 293
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->m:Landroid/os/Handler;

    const/4 v1, 0x0

    invoke-virtual {v0, v1}, Landroid/os/Handler;->removeCallbacksAndMessages(Ljava/lang/Object;)V

    .line 295
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->o:Landroid/content/BroadcastReceiver;

    invoke-static {v0}, Lcom/instagram/n/d;->a(Landroid/content/BroadcastReceiver;)V

    .line 296
    return-void
.end method

.method protected onRestoreInstanceState(Landroid/os/Bundle;)V
    .locals 3
    .parameter "state"

    .prologue
    .line 315
    invoke-super {p0, p1}, Lcom/instagram/android/activity/v;->onRestoreInstanceState(Landroid/os/Bundle;)V

    .line 319
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->b:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->clear()V

    .line 320
    const-string v0, "backTabList"

    invoke-virtual {p1, v0}, Landroid/os/Bundle;->getStringArrayList(Ljava/lang/String;)Ljava/util/ArrayList;

    move-result-object v0

    invoke-virtual {v0}, Ljava/util/ArrayList;->iterator()Ljava/util/Iterator;

    move-result-object v1

    :goto_0
    invoke-interface {v1}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v1}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Ljava/lang/String;

    .line 321
    iget-object v2, p0, Lcom/instagram/android/activity/MainTabActivity;->b:Ljava/util/LinkedList;

    invoke-static {v0}, Lcom/instagram/android/activity/ae;->valueOf(Ljava/lang/String;)Lcom/instagram/android/activity/ae;

    move-result-object v0

    invoke-virtual {v2, v0}, Ljava/util/LinkedList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 324
    :cond_0
    const-string v0, "MainTabActivity.tookSendIntent"

    const/4 v1, 0x0

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->getBoolean(Ljava/lang/String;Z)Z

    move-result v0

    iput-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->g:Z

    .line 325
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->d()Lcom/instagram/android/activity/k;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/k;->b(Landroid/os/Bundle;)V

    .line 326
    return-void
.end method

.method protected onResume()V
    .locals 3

    .prologue
    .line 258
    invoke-super {p0}, Lcom/instagram/android/activity/v;->onResume()V

    .line 260
    const-string v0, "MainTabActivity"

    const-string v1, "onResume"

    invoke-static {v0, v1}, Lcom/facebook/e/a/a;->b(Ljava/lang/String;Ljava/lang/String;)V

    .line 264
    invoke-static {}, Lcom/instagram/android/c2dm/k;->a()Lcom/instagram/android/c2dm/k;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/c2dm/k;->e()V

    .line 266
    new-instance v0, Landroid/content/IntentFilter;

    invoke-direct {v0}, Landroid/content/IntentFilter;-><init>()V

    .line 267
    const-string v1, "MainTabActivity.BROADCAST_BACK_PUSHED"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 268
    const-string v1, "MainTabActivity.BROADCAST_LOGOUT"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 269
    const-string v1, "MainTabActivity.BROADCAST_TOAST"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 270
    const-string v1, "com.instagram.android.fragment.NewsFragment.BROADCAST_INBOX_SHOWN"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 271
    const-string v1, "SelfFragment.BROADCAST_NEW_PHOTOS_OF_YOU"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 272
    const-string v1, "SelfFragment.BROADCAST_SELF_PROFILE_SHOWN"

    invoke-virtual {v0, v1}, Landroid/content/IntentFilter;->addAction(Ljava/lang/String;)V

    .line 274
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v1

    .line 275
    iget-object v2, p0, Lcom/instagram/android/activity/MainTabActivity;->o:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v2, v0}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 276
    new-instance v0, Landroid/content/Intent;

    const-string v2, "com.instagram.android.activity.BROADCAST_REFRESH_MAIN_FEED"

    invoke-direct {v0, v2}, Landroid/content/Intent;-><init>(Ljava/lang/String;)V

    invoke-virtual {v1, v0}, Landroid/support/v4/a/e;->a(Landroid/content/Intent;)Z

    .line 278
    iget-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->l:Z

    if-eqz v0, :cond_0

    .line 279
    const/4 v0, 0x0

    iput-boolean v0, p0, Lcom/instagram/android/activity/MainTabActivity;->l:Z

    .line 280
    new-instance v1, Lcom/instagram/e/b/a/a;

    invoke-virtual {p0}, Lcom/instagram/android/activity/MainTabActivity;->getCurrentActivity()Landroid/app/Activity;

    move-result-object v0

    check-cast v0, Landroid/support/v4/app/j;

    invoke-virtual {v0}, Landroid/support/v4/app/j;->f()Landroid/support/v4/app/r;

    move-result-object v0

    invoke-direct {v1, v0}, Lcom/instagram/e/b/a/a;-><init>(Landroid/support/v4/app/r;)V

    new-instance v0, Lcom/instagram/android/directshare/d/d;

    invoke-direct {v0}, Lcom/instagram/android/directshare/d/d;-><init>()V

    invoke-virtual {v1, v0}, Lcom/instagram/e/b/a/a;->a(Landroid/support/v4/app/Fragment;)Lcom/instagram/e/b/a/a;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/e/b/a/a;->e()V

    .line 285
    :cond_0
    invoke-static {}, Lcom/instagram/android/o/f;->a()Lcom/instagram/android/o/f;

    move-result-object v0

    invoke-virtual {v0}, Lcom/instagram/android/o/f;->b()V

    .line 286
    return-void
.end method

.method protected onSaveInstanceState(Landroid/os/Bundle;)V
    .locals 3
    .parameter "outState"

    .prologue
    .line 300
    invoke-super {p0, p1}, Lcom/instagram/android/activity/v;->onSaveInstanceState(Landroid/os/Bundle;)V

    .line 302
    new-instance v1, Ljava/util/ArrayList;

    invoke-direct {v1}, Ljava/util/ArrayList;-><init>()V

    .line 303
    iget-object v0, p0, Lcom/instagram/android/activity/MainTabActivity;->b:Ljava/util/LinkedList;

    invoke-virtual {v0}, Ljava/util/LinkedList;->iterator()Ljava/util/Iterator;

    move-result-object v2

    :goto_0
    invoke-interface {v2}, Ljava/util/Iterator;->hasNext()Z

    move-result v0

    if-eqz v0, :cond_0

    invoke-interface {v2}, Ljava/util/Iterator;->next()Ljava/lang/Object;

    move-result-object v0

    check-cast v0, Lcom/instagram/android/activity/ae;

    .line 304
    invoke-virtual {v0}, Lcom/instagram/android/activity/ae;->toString()Ljava/lang/String;

    move-result-object v0

    invoke-virtual {v1, v0}, Ljava/util/ArrayList;->add(Ljava/lang/Object;)Z

    goto :goto_0

    .line 306
    :cond_0
    const-string v0, "backTabList"

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putStringArrayList(Ljava/lang/String;Ljava/util/ArrayList;)V

    .line 307
    const-string v0, "MainTabActivity.tookSendIntent"

    iget-boolean v1, p0, Lcom/instagram/android/activity/MainTabActivity;->g:Z

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBoolean(Ljava/lang/String;Z)V

    .line 308
    invoke-direct {p0}, Lcom/instagram/android/activity/MainTabActivity;->d()Lcom/instagram/android/activity/k;

    move-result-object v0

    invoke-virtual {v0, p1}, Lcom/instagram/android/activity/k;->a(Landroid/os/Bundle;)V

    .line 310
    const-string v0, "SAVED_STATE_BUNDLE"

    iget-object v1, p0, Lcom/instagram/android/activity/MainTabActivity;->n:Landroid/os/Bundle;

    invoke-virtual {p1, v0, v1}, Landroid/os/Bundle;->putBundle(Ljava/lang/String;Landroid/os/Bundle;)V

    .line 311
    return-void
.end method

.method protected onStart()V
    .locals 3

    .prologue
    .line 646
    invoke-super {p0}, Lcom/instagram/android/activity/v;->onStart()V

    .line 648
    const-string v0, "newstab"

    invoke-static {v0}, Lcom/instagram/android/c2dm/g;->b(Ljava/lang/String;)Landroid/content/IntentFilter;

    move-result-object v0

    .line 650
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v1

    iget-object v2, p0, Lcom/instagram/android/activity/MainTabActivity;->p:Landroid/content/BroadcastReceiver;

    invoke-virtual {v1, v2, v0}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;Landroid/content/IntentFilter;)V

    .line 651
    return-void
.end method

.method protected onStop()V
    .locals 2

    .prologue
    .line 655
    invoke-static {p0}, Landroid/support/v4/a/e;->a(Landroid/content/Context;)Landroid/support/v4/a/e;

    move-result-object v0

    iget-object v1, p0, Lcom/instagram/android/activity/MainTabActivity;->p:Landroid/content/BroadcastReceiver;

    invoke-virtual {v0, v1}, Landroid/support/v4/a/e;->a(Landroid/content/BroadcastReceiver;)V

    .line 656
    invoke-super {p0}, Lcom/instagram/android/activity/v;->onStop()V

    .line 657
    return-void
.end method
